<?php


namespace app\common\validate;


class SmsValidate extends BaseValidate
{
    protected $rule = [
        "mobile" => 'require|mobile',
        'code'   => 'require|checkMobileCode',
    ];

    protected $field = [
        "mobile" => '电话',
        'code'   => '验证码'
    ];

    protected $scene = [
        'send'       => ['mobile'],
        'check_code' => ['mobile', 'code'],
    ];
}